// 3.创建底图

// 矢量地图
const baseLayer = new ol.layer.Tile({
  source: new ol.source.XYZ({
    url: 'https://webrd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
  }),
  name: '高德底图图层',
  zIndex: 2,
})

// 影像地图
const imgLayer = new ol.layer.Tile({
  source: new ol.source.XYZ({
    url: 'https://webst0{1-4}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
  }),
  name: '高德影像图层',
  zIndex: 3,
})

export { baseLayer, imgLayer }
